<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
		<meta charset="UTF-8">
		<title>显示应聘者的信息</title>
		<link rel="stylesheet" href="${pageContext.request.contextPath }/admin/qf/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
		<link rel="stylesheet" href="${pageContext.request.contextPath }/admin/qf/css/chax.css" />
	</head>
	<script type="text/javascript" src="${pageContext.request.contextPath }/admin/qf/js/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/admin/qf/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath }/admin/qf/js/chaxStu.js" ></script>
	<body>
		<hr>
		<b>&nbsp;&nbsp;应聘者内容列表</b>
		<hr>
		<!--添加学生列表-->
		<div>
		<form action="findApply" method="post" id="fsub">
				<input type="text" name="zname" class="tex" placeholder="请输入搜索关键字" />
				<input type="hidden" id="pageNo" name="pageNo" value="${pageNo} "/>
				<button class="but2"><font>搜索</font></button>&nbsp;&nbsp;
			</form>
		</div>
		<hr />

		<table class="table table-hover">
			<thead>
				<tr>
					<th>应聘者编号</th>
					<th>应聘者姓名</th>
					<th>手机号码</th>
					<th>性别</th>
					<th>应聘职位</th>
					<th>身份证号码</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
			 	<s:iterator value="#request.apy.list">
				<tr>
					<td>${applyId}</td>
					<td>${applyName}</td>
					<td>${applyPhone}</td>
					<td>${applySex}</td>
					<td>${posit.positName}</td>
					<td>${applyCard}</td>
					<td>
						<div class="btn-group">
							<a href="lyApply?applyId=${applyId}"><button type='button' class='btn btn-default'style='background-color: #5CB85C; color: white;'>录用</button></a>
							<a href="deleteApply?applyId=${applyId}"><button type='button' class='btn btn-default'style='background-color: red; color: white;'>删除</button></a>
						</div>
					</td>
				</tr>
				</s:iterator>
				<tr>
				<td colspan="7">
				当前是第${pageNo}页，共${sumPage}页
				</td>
			</tr>
			</tbody>
		</table>
		<div class="btn-group" style="margin-left: 350px">
		<a href="javascript:pageModel(${pm.index})"><button type="button" id="start" class="btn btn-default">首页</button></a>
		<a href="javascript:pageModel(${pm.prev})"><button type="button" id="pageS" class="btn btn-default">上一页</button></a>
		<a href="javascript:pageModel(${pm.next})"><button type="button" id="pageX" class="btn btn-default">下一页</button></a>
		<a href="javascript:pageModel(${pm.sumPage})"><button type="button" id="end" class="btn btn-default">尾页</button></a>
	</div>
	<script type="text/javascript">
		function pageModel(pageNo){
			$("#pageNo").val(pageNo);
			$("#fsub").submit();
		}
</script>
	</body>

</html>